package com.smarthome.core.deviceManager;

import java.util.List;

import com.smarthome.domain.bean.ShEquipmentDevTalk;
import com.smarthome.domain.vo.boss.DataGrid;
import com.smarthome.domain.vo.boss.PageHelper;

/**
 * <B>对讲设备服务类</B><br />
 * 
 * @author hgj
 */
public interface EquipmentDevTalkService {

	/**
	 * 分页查询
	 * 
	 * @param devTalk
	 * @param page
	 * @return
	 */
	DataGrid dataGrid(ShEquipmentDevTalk devTalk, PageHelper page);

	void saveOrUpdate(ShEquipmentDevTalk devTalk);

	/**
	 * 根据id获取
	 * 
	 * @param id
	 * @return
	 * @author hgj
	 */
	ShEquipmentDevTalk queryById(Long id);

	int delete(Long id);

	List<ShEquipmentDevTalk> getAllList(ShEquipmentDevTalk talk);

	/**
	 * 根据单元ID数组查询所有对应的对讲设备
	 * 
	 * @param buildingIds
	 * @return
	 */
	List<ShEquipmentDevTalk> getByBuildingIds(Long... buildingIds);
}
